package sa4.persistence


import javax.servlet.http._
import scala.xml._
import scala.collection.JavaConversions._
import scala.util.matching.Regex
import javax.servlet.ServletConfig
import scala.io.Source._
import java.io._
import org.squeryl.PrimitiveTypeMode._
import org.squeryl.KeyedEntity
import org.squeryl.annotations.OptionType
import org.squeryl.SessionFactory
import org.squeryl.Session
import org.squeryl.adapters.H2Adapter
import sa4.template._
import java.sql.Timestamp
import java.sql.Date
import scala.collection.mutable.HashMap



class persistence {
  
  
  
  
 class User(val surname: String, val lastname: String ,val email:String) extends KeyedEntity[Long] {
  val id = 0L
  def this() = this("", "","")
}

// The database schema for our books
object Biblio extends org.squeryl.Schema {
  val reservs = table[User]
}



transaction {
      Biblio.drop
      Biblio.create

    }


}